﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script src="js/HtmlRequest.js" type="text/javascript"></script>
<script src="js/swfobject.js" type="text/javascript"></script>
<script src="js/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="js/login.js" type="text/javascript"></script>
<script src="js/SendMail.js" type="text/javascript"></script>
<script type="text/javascript">
    var encKey = Request.QueryString('guid');

    var params = {
        quality: "high",
        scale: "noscale",
        wmode: "transparent",
        allowscriptaccess: "always",
        bgcolor: "#FFFFFF"
    };
    var flashvars = {
        islogin: 0,
        guid: ""
    };
    var attributes = {
        id: "flashcontent",
        name: "flashcontent"
    };
    if (encKey == null)
        flashvars.guid = 0;
    else
        flashvars.guid = encKey;


    $.ajax({
        type: "GET",
        url: "/login.aspx",
        dataType: "text",
        async: false,
        data: "op=getSession&random=" + new Date().toLocaleString(),
        beforeSend: function (xmlHttpRequest) {
        },
        success: function (data, textStatus) {
            alert(data);
            if (parseInt(data) == 1) {
                flashvars.islogin = 1;
            }
        },
        complete: function (xmlHttpRequest, textStatus) {

        },
        error: function () {
            alert("error");
        }
    });
    alert("flashvars.islogin:" + flashvars.islogin);
    alert("flashvars.guid:" + flashvars.guid);
   // swfobject.embedSWF("loader.swf", "flashcontent", "100%", "100%", "10.0.0", "expressInstall.swf", flashvars, params, attributes);

</script>
<head>
    <title></title>
</head>
<body>
    <input type="button" onclick="javascript:login()" value="登录" />
    <input type="button" onclick="javascript:sendMail('cn')" value="中文—发邮件" />
    <input type="button" onclick="javascript:sendMail('en')" value="英文—发邮件" />
    <div style="height: 927px;">
        <div id="flashcontent">
        </div>
    </div>
</body>
</html>
